import { Input } from "antd"
import { FC } from "react"

import { SFormItem } from "@/components/common"
import { useLocale } from "@/locales"

const ProxyNameInput: FC<any> = ({ isHideLabel = false, rules = [] }) => {
	const { formatMessage } = useLocale()
	return (
		<SFormItem name="proxyName" label={isHideLabel ? "" : formatMessage({ id: "report.agent_account" })} rules={rules}>
			<Input allowClear placeholder={formatMessage({ id: "report.agent_account" })} />
		</SFormItem>
	)
}

export default ProxyNameInput
